package com.team.mp.mapper.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.team.mp.mapper.entity.ServiceItems;
import com.team.mp.mapper.entity.ServicePack;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author lee
* @description 针对表【t_service_pack(服务包)】的数据库操作Mapper
* @createDate 2023-03-27 16:44:20
* @Entity com.team.mp.api.entity.ServicePack
*/
public interface ServicePackDao extends BaseMapper<ServicePack> {

    List<String> selectLabels(Integer id);

    List<ServiceItems> selectItems(Integer id);


    /**
     * 查询已选择的服务项目
     *
     * @param id
     * @return
     */
    List<ServiceItems> querySelectedItems(Integer id);

    /**
     * 给服务包新增服务项目
     * @param itemIds
     * @param id
     * @return
     */
    int insertBatchItems(@Param("itemIds") List<Integer> itemIds, @Param("id") Integer id);
}




